import { Controller } from 'egg';

export default class InviteCodeController extends Controller {
  /**
   * @api {get} inviteCode/List 获取邀请码列表
   * @apiVersion 1.0.0
   * @apiName list
   * @apiGroup inviteCode
   * @apiDescription 获取邀请码列表
   * @apiHeaderExample {json} headers:
   *     {
   *       "token": "admin_token"
   *     }
   * @apiParam {String} days 一个验证码的使用时间
   */
  public async list(ctx) {
    ctx.response.body = {
      code: 200,
      status: '成功'
    }
  }

  /**
   * @api {get} inviteCode/create 生成验证码
   * @apiVersion 1.0.0
   * @apiName create
   * @apiGroup inviteCode
   * @apiDescription 获取邀请码列表
   * @apiHeaderExample {json} headers:
   *     {
   *       "token": "admin_token"
   *     }
   */
  public async create(ctx) {
    ctx.response.body = {
      code: 200,
      status: '成功'
    }
  }
}
